Skip to content

fix: preserve clarify fallback ownership#3071

Merged
1 commit merged into
nesquena:masterfrom
AJV20:fix/clarify-fallback-owner
May 28, 2026
Merged

fix: preserve clarify fallback ownership#3071
1 commit merged into
nesquena:masterfrom
AJV20:fix/clarify-fallback-owner

Conversation

@AJV20

@AJV20 AJV20 commented May 28, 2026

Copy link
Copy Markdown
Contributor

Thinking Path

Approval polling keeps its owner session when SSE falls back to polling. Clarify polling had an asymmetric path: its SSE onerror called the full stop helper before starting fallback polling, briefly clearing _clarifyPollingSessionId and allowing later terminal cleanup from another session to stop the active fallback poller.

What Changed

  • Clarify SSE onerror now closes only the SSE/health resources before starting fallback polling.
  • _startClarifyFallbackPoll(sid) explicitly records the fallback owner session id.
  • Adds source-level regression coverage for the fallback ownership invariant.
  • Adds a changelog entry.

Verification

  • node --check static/messages.js
  • python3.11 -m pytest tests/test_session_runtime_ownership_invariants.py tests/test_1694_prompt_ownership.py -q -o addopts= (12 passed)
  • git diff --check origin/master...HEAD

@nesquena-hermes nesquena-hermes closed this pull request by merging all changes into nesquena:master in b103f4a May 28, 2026
@nesquena-hermes

Copy link
Copy Markdown
Collaborator

Shipped in v0.51.153 / Release DY (stage-batch35, commit b103f4a). Thanks for the contribution!

AJV20 pushed a commit to AJV20/hermes-webui that referenced this pull request May 28, 2026
# Conflicts:
#	CHANGELOG.md
AJV20 pushed a commit to AJV20/hermes-webui that referenced this pull request May 28, 2026
11-PR low-risk cleanup:
- nesquena#3043 openai-codex models.dev reasoning passes xhigh
- nesquena#3044 reset _messagesTruncated on new session
- nesquena#3047 discoverability: api lineage representative for stale CLI flag
- nesquena#3049 title-language detection threshold + English false-positive fix
- nesquena#3051 docker docs: sudo compose + Linux host-gateway
- nesquena#3054 SSE reconnect: visible-but-unfocused current pane
- nesquena#3055 fallback title: drop German-only Session Bilder case
- nesquena#3056 title prompt: language-neutral instruction
- nesquena#3070 /api/upload reports actual stored filename
- nesquena#3071 clarify SSE fallback preserves owner session id
- nesquena#3072 gateway-chat forwards image attachments as image_url parts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants